package example.kristin.mybatis.dao;

import example.kristin.mybatis.entity.MyEntity;
import org.apache.ibatis.annotations.Insert;

public interface MyEntityDao {

    int saveMyEntity(MyEntity myEntity);

    @Insert("insert into my_entity(name) values(#{name})")
    int saveMyEntityByAnnotation(MyEntity myEntity);

}
